added case-insensitive matching