added keyname_to_key api call