added events in nginx