transform output to yaml