controller add flush buffer