bug-fix: add BRANCH var for apex config prep