add check for snapshot integrity

close issue #68