added saving of stdev files