moved dhash to util