improve exception when config settings are missing