implemented xhr_streaming and xhr_send