make sure to use correct method to calculate linkhash