script for setting up n # of child nodes