add migrate command, improved later