added SSL protocol support