fix curl scripts