added events namespace