fix curl link/raw output