move all core exports to core.js