scripts for migrating