refactor express app instantiation