support multiple output formats in metadata