add es6 support