new tree system in the cpp client 2