refactoring: keep simple architecture
calculate flow hash properly