changed errors to std error