restructuring of complete worktree