added stream framing to prototype