updated the script used for nodes