be more defensive when importing hashes