use struct instead of tuple
rename yaml_tool to yaml_writer