fix update script, remove old code