tree bugfixes adding new node