add more streaming utils

thanks to @maxogden