defined functions remai ning to be tested
flatten works for one streamd
possible to flatten stream with several items
concat works