only check dialect once