add support for multiple flow dirrections