finish es6 new api