better defaults to writeAsYaml