refactored add_link_spec. tests still passing