hashByName defaults to false