add expander to writer