made main.js async again