some modifications to the migration scripts