change how xhr is exposed..