fixes to update scripts