externalize error messages