more resilient md5 check