update script api
fix