create readable stream before writeable stream; wait for writeable stream to finish