added the streaming API