also account for a passed tree_id