remove destroy in core.js