some fix for hashlib