migrate to new kmf