correct --upgrade to --upgrade-mode