fixing runScript