fixed up stream reading/writing
changed how to specify mongo collections to a writer