handle missing keys