improve permanent link comparison