removed settings and used appsettings instead