app configuration refactoring