created general framework of migrator script