allow specification of output format in YAML