parse out all branch labels