helper method register_module