turn on error templates