support for multiple flows and trying out fancy switching