update smart scripts