updated streams to work with big files