added some consistency checking for id table