write settings