add option to hash remote file or just hash the name