improved support for ssl