use es6 imports

(still thworing an error for unused variable)