add key not found handling