proper handling of app settings