add rootId
more option
fixed bug