add expand in core.js