read from/write to stream