fix camelcase: parseYaml
Put function variables in local scope