added option to stream from end of file