add functions for working with stream_file
do fixes for stream_file_read