pm: settings writing