update script improvements