errors and results are both part of the outputs structure