add imports of hashlib and functools