write errors to standard error