fix branching API