support lazy stream creation
docs for lazy stream creation