add support for SSL connections