add hash tables integrity checking.