flush moved to Writer