adding scripts to graph