genericize error messages