fixing ks upgrade issues