Good point.  I only did this to just be able to pass the keypair object/hash "as-is".
But indeed, it might be better to just pass the name.  It's less confusing.
I'll change this ...