add debugging for SSL