add cap branch support