-add XHR support