refactored appSettings