needed for building KMC.