better error messages for strict mode