re-sync km.c