made sure request calls its callback with the xhr object