added events for SSL