add support for multiple flow dirrections

adds support for multiple flow directions using an 8-bit encoding to match the flow direction operation