add support for ssl connections