added error templates