isolate block streaming functionality, so that it s pipable