refactored configuraton error handling