phase1: make GetNextBuild() branch aware