saving state before I do random migration