fixed ssl issue with connect