aligning stream API with other Appjangle APIs