add support for the tree which with multi-roots