dispatcher flush needs to happen in main dispatcher loop