example/library: read from E mainloop