latest fixes to get app to work with aws