script now has root as a parent node