added a self consistency check at the boot time.