re-adding TDTree changes