fix curl helper