support for SSL,  tests passing