moving upgrade before packages