use fibers for reading and writing