avoid KeyErrors