reverse in __generateRootModules