--xml mode fixes
attempt to fix authetication protocol, didn't work