updated the migrator script