kvdata to file