move exports to the end in core.js