add flush condition to strategy