draft of function get_link_info