modify core.js