only enable semantic mode on cc mode