puking if json is wrong