basically i just handle on 'data' event and read the data in the event handler