extracted creation of express app to misc module