phase1: treat all branches equally for building