improved how the appsettings work