updated flush to account for :false being set as true