converting JSONErrors to exceptions
converted groups to the new exception format
oops