fixed discoverFlushes