added internal error templates