adding residual output to mlmcsa driver