updates to reflect the rewrite of update.sh
some minor improvments.