add auto flush feature