split upgrade into separate file