some more XHR like functionality