added ssl support for Scotty