updating file stream
fix ctrl-c exit and falling behind
Merge branch 'file-stream'