use promise on flush
0.0.1