adding cases for upgrade/downgrade