Support new labels yaml file format