adding support for ssl in production environment