moved validateConfigs to Config.validate.