added some xmlhttprequest stuff