the ES6 module refactor