change kernel a bit to scan semantic dir