some minor fixes to xml requests