make migration optional