added the flush option for now