update the exception-throwing parts to write error messages to the standard error as well.