return xhr to allow more tweaking