registerEvents -> eventHandlers