add support for Osc, Apc, Csi and use new parser in stream