tidy
convert a stream into a group of hashes