add runScript code