use XHR as default