cfg_path was in the wrong scope