improvements to KF