catch undefined keys