added standalone version of the tree renderer