made some tweaks and going through trial and error. something wrong with app funciton in index.js now