ensure link type updates when important state changes happen, fixes #128.