YAML.load_file instead of YAML.load