moved es6 to external library