writer now flushes