change settings on file write