added support for case sensitive and case insensitive maps