pass the event name to still support one global handler