attempt to modify for ssl