add global event handler support