sevral fixes regarding file hashing