added link_get function