add support for disable_flush option