s2mflow