adding support for ssl