added SSL suport