adding some more mechanisms to configure events
new version