add events for SSL