kbserver debugging
minor fixes