first pass at pkey inference