remove xhr dependency in core