add init for core.js