pre-migration cleanup