script to push subtrees