added moveFileToHashWithExtension and clearTmpIfWeHaventAlready