changed to use appSettings