add support for branching priority.