move URLs to check to external file, cURL fix