minor xhr fixes