refactor path_dict as path2label