change coremod
refactoring code
For 1.7.2. make coremod