0.2 compatibility in branch callbacks