fixed an issue with the servername and protocol.