replacing `MementoFileWriter`