fixes for xml requests