add migration option
exit with different exit codes when a migration is not possible