added basic streaming feature