kmid rebuild