kcore: more fixes for init