module: add within_module_core() and within_module_init()