force case-insensitive searching
added type safety directives