adding support for finite streams in combinators