add support for SSL