[Feature] add tree management