make the update script reliable