add canonicalization to file collision check