xhr api system is now passing tests, pretty cool imo