fix install and update scripts