added md5 check