started updates to protocol_flush and stream