adding in debugging to yaml_doc and yaml_file