use getModules() also in addModule()