move to scodec-stream