add subtree script