adding script to add nodeids