used optional in ssl handler creation