set sensible default for an event listener's callback