- some flow and routing hash functions
- cleanup code