added missing ModuleType in ModuleFactory method