added event configuration method