figured out xhr problem