writePreset implementation