reame name argument to key, small refactor in get fn