working on streaming api