support truncateUnusedLinks