update script and corrections