fix yaml, add validation, add json/yaml converters