cope with KeyError nicely