tweak file writer