update a script to match the changed interface