added connect to secure server and not secure