fixed a authentication problem with non-encrypting servers