baseparse: handle streamheaders by prepending them to the stream