update migrate2 script