improve checksum detection to be case insensitive