hooks for PMD flow analysis