update build flow and index vars