change in Writer.class to mark writer protected