tree-staged registering working (not tested)