adding xhr to console error