add check for cURL