improve TimeTree API