refactor app configuration