support CommonJS loading from ES6