rebuilt class: SaveWriter