changing all .name calls to .key 

This removes all the deprecated warnings I've been seeing.