compare hashes before importing