add switches to upgrade