simplify hash/array logic in link_curl_example