fixed bug. Now implementing done() in each _flush method