add initial code for SSL connect