switched to hashlib from md5