create remote ref when creating subtree