kpagecount improvements