rename back key_pair to key_name.