work version with IConfigSourceProvider