First version of kvapi.h