enhance update script