allow undefined event handler