module management refactoring needed for api routes registration