re-sync kx.c