can we have a better name for this method? something like getYaml?