added negotiation of AUTH_TYPE