changed options API to appsettings API