dealing with bad json results