added dump and integrity checks