fix up and enable ksm