use sha512 to hash files
wip, fix some mlks