oops. forgot to take out xhr in sendwithxhr