mim cleanup