merge all and migrate