running def upgrade_os