extracting app creation out of http setup script