[tech] upgrade the event handler interface