small branching improvements