event-handler: added mid level event handling