use demonitor with flush