refactor a bit and add inactiveLinkAttributes