switch to the new struct writer/writer_node abstraction