more critical fixes to p_k_v