flush becomes save_batch
fixe dbug..i hope