first part of the update script
first part of the update script