fixes to get streamer to write to file
minor edits