add support for bidirectional links