implement disable_xhr feature and ping/pong