better error reporting in config_load