only use hashlib if addHashes is true