prep for code generation of writer