adjust functions.lua
update display
update CURL to CURLOPT_FRESH_CONNECT