added XHR add method