save key association to yaml