use with for XHR object