allow iterators to write to Writer