added printing errors to std err