added logging for migrations