phase1: use branch config in factory