why postFlush, would it not be preFlush rather?