tweak the settings save method