saving state before packages renaming