parsing nested errors