api should be case insensitive