tree api updated