writer may be ``null`` at this point; is that ok?