fix curl madness