add dialect sniffing