added support for SSL connection
added support for SSL connection