some more type safety features for strict mode