adapt updatescript