added phase 2 migration