buffer the file streams