working on migration script