refactor(files) read, readPipe