need to call checkout to fix subtrees