calculate filter masks
reset/enable flow filters