TreeWriter now create their headerWriter internally