convert config to yaml