improve configuration checking