fixes promise + async in bundler.js