actually write settings