working on xhr some more