minor changes to support custom SSL certs