remove timeout macro. set callback when parsing stream