finished PoC of stream functionality