kmp stub