updated ad_update script