this is wrong. If the ``branchClass`` is not set, you will set the ``leafClass`` on all nodes, even when they are not leafs