remove old XHR code