create the readYaml helper