promises ftw
refactoring for promises
refactoring web app