move config to appsetting