update script fixes