add hashing option, closes #1