enable emails on error and output errors to stderr