improved migration command