fixed cURL invocation