gather inbound and outbound links