modify key file