order of kd/kp handlers