grounding script and partial tree