first version of migration script