a couple tweaks to teh upgrade scripts.