removed unused templates, added ssl_connection interface