Fix changlog version bug, redownload metadata when version mismatch
reformat
fix mmap check bug