update a script