converted generators to es6 for appkit