add runScript and test