standalone version of the tree renderer