move branch.init before leaders registration