updated to use AppSettings instead of explicit declarations