fix curl invocation