fixed md5 check and IP detection