add xhr streaming handler