add stream functionality