use a more precise way to check moduleName