labels to paths