output: fix the flushbybag feature

(closes #65)