clean read, using same InputFile for streams, need to bufferize if read stream