M flows