add handlers for modules