put ssl route back in and corrected client side call to socket by passing location object