update key file attribute