implement unified interface for element linking / unlinking