added event handling exception handler support