add check if migration is possible