Consolidated Statements of Cash Flows - USD ($) $ in Thousands |
3 Months Ended |
12 Months Ended |
16 Months Ended |
21 Months Ended |
Dec. 31, 2016 |
Sep. 30, 2016 |
Jun. 30, 2016 |
Mar. 31, 2016 |
Dec. 31, 2015 |
Sep. 30, 2015 |
Jun. 30, 2015 |
Mar. 31, 2015 |
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
Dec. 31, 2016 |
Dec. 31, 2016 |
| CASH FLOWS FROM OPERATING ACTIVITIES: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Net income (loss) |
|
|
|
|
|
|
|
|
$ 44,713
|
$ (151,710)
|
$ 82,538
|
|
|
| Adjustments to reconcile net income (loss) to net cash flows from operating activities: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Depreciation expense |
|
|
|
|
|
|
|
|
31,825
|
24,997
|
15,255
|
|
|
| Amortization expense of assets and liabilities, net |
|
|
|
|
|
|
|
|
1,052
|
570
|
541
|
|
|
| Accretion of asset retirement obligations |
|
|
|
|
|
|
|
|
78
|
72
|
67
|
|
|
| Accretion of convertible note discount |
|
|
|
|
|
|
|
|
5,147
|
4,699
|
2,635
|
|
|
| Accretion of marketable securities |
|
|
|
|
|
|
|
|
0
|
189
|
553
|
|
|
| Impairment of property, plant and equipment, net |
$ 17,893
|
$ 0
|
$ 0
|
$ 0
|
|
|
|
|
17,893
|
0
|
0
|
|
|
| Provision for doubtful accounts |
|
|
|
|
|
|
|
|
630
|
(803)
|
1,453
|
|
|
| Stock compensation expense |
|
|
|
|
|
|
|
|
5,896
|
5,161
|
5,883
|
|
|
| Impairment of goodwill |
|
|
|
|
$ 175,028
|
$ 0
|
$ 0
|
$ 0
|
0
|
175,028
|
0
|
|
|
| Impairment of investment |
|
|
|
|
|
|
|
|
0
|
1,915
|
0
|
|
|
| Deferred tax expense (benefits) |
|
|
|
|
|
|
|
|
3,009
|
(8,953)
|
3,641
|
|
|
| Change in fair value of contingent consideration |
|
|
|
|
|
|
|
|
7,904
|
(359)
|
(6,631)
|
|
|
| Gain on involuntary conversion |
|
|
|
|
|
|
|
|
(9,894)
|
0
|
0
|
$ (1,525)
|
$ (8,010)
|
| Bargain purchase gain |
|
|
|
|
|
|
|
|
0
|
(5,358)
|
0
|
|
|
| Change in fair value of convertible debt conversion liability |
|
|
|
|
|
|
|
|
(13,045)
|
0
|
0
|
|
|
| Gain on debt extinguishment |
|
|
|
|
|
|
|
|
(2,331)
|
0
|
0
|
|
|
| Other |
|
|
|
|
|
|
|
|
(70)
|
(231)
|
249
|
|
|
| Changes in asset and liabilities, net of effects from mergers and acquisitions: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Accounts receivable |
|
|
|
|
|
|
|
|
145,068
|
(20,309)
|
(207,877)
|
|
|
| Inventories |
|
|
|
|
|
|
|
|
(58,551)
|
29,631
|
(277)
|
|
|
| Prepaid expenses and other assets |
|
|
|
|
|
|
|
|
(5,566)
|
16,315
|
(12,146)
|
|
|
| Accounts payable |
|
|
|
|
|
|
|
|
(133,139)
|
32,422
|
143,131
|
|
|
| Accrued expenses and other liabilities |
|
|
|
|
|
|
|
|
7,771
|
(6,769)
|
2,336
|
|
|
| Deferred revenue |
|
|
|
|
|
|
|
|
26,913
|
(16,347)
|
1,177
|
|
|
| Net cash flows provided from operating activities |
|
|
|
|
|
|
|
|
75,303
|
80,160
|
32,528
|
|
|
| CASH FLOWS FROM INVESTING ACTIVITIES: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Cash paid for marketable securities |
|
|
|
|
|
|
|
|
0
|
(52,435)
|
(80,974)
|
|
|
| Cash receipts from marketable securities |
|
|
|
|
|
|
|
|
0
|
68,979
|
63,840
|
|
|
| Cash paid for purchase of property, plant and equipment |
|
|
|
|
|
|
|
|
(60,705)
|
(64,477)
|
(60,163)
|
|
|
| Insurance proceeds for asset impairments |
|
|
|
|
|
|
|
|
10,949
|
11,027
|
0
|
|
|
| Cash receipts from disposal of fixed assets |
|
|
|
|
|
|
|
|
0
|
0
|
45
|
|
|
| Transfer into restricted cash |
|
|
|
|
|
|
|
|
0
|
(4,000)
|
(117,660)
|
|
|
| Transfer out of restricted cash |
|
|
|
|
|
|
|
|
1,960
|
15,845
|
0
|
|
|
| Cash paid for investments |
|
|
|
|
|
|
|
|
(3,249)
|
(1,452)
|
(2,779)
|
|
|
| Cash paid for acquisitions and additional interests, net of cash acquired |
|
|
|
|
|
|
|
|
(12,720)
|
(41,409)
|
(19,369)
|
|
|
| Other investing activities |
|
|
|
|
|
|
|
|
0
|
0
|
27
|
|
|
| Net cash flows used in investing activities |
|
|
|
|
|
|
|
|
(63,765)
|
(67,922)
|
(217,033)
|
|
|
| CASH FLOWS FROM FINANCING ACTIVITIES: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Net borrowings on line of credit |
|
|
|
|
|
|
|
|
26,445
|
6,470
|
5,693
|
|
|
| Borrowing on other lines of credit |
|
|
|
|
|
|
|
|
10,185
|
0
|
0
|
|
|
| Repayments on other lines of credits |
|
|
|
|
|
|
|
|
(2,437)
|
0
|
0
|
|
|
| Cash received for issuance of debt |
|
|
|
|
|
|
|
|
11,775
|
104
|
5,490
|
|
|
| Cash paid for capped call transactions |
|
|
|
|
|
|
|
|
0
|
0
|
(11,904)
|
|
|
| Cash received on convertible debt |
|
|
|
|
|
|
|
|
152,000
|
0
|
143,750
|
|
|
| Cash paid on debt |
|
|
|
|
|
|
|
|
(74,562)
|
(6,708)
|
(37,798)
|
|
|
| Cash paid for debt issuance costs |
|
|
|
|
|
|
|
|
(6,369)
|
(542)
|
(4,719)
|
|
|
| Cash received on partial termination of capped call options |
|
|
|
|
|
|
|
|
159
|
0
|
0
|
|
|
| Cash paid for issuance of common stock and preferred stock |
|
|
|
|
|
|
|
|
0
|
0
|
(1,587)
|
|
|
| Cash paid for redemption of preferred stock |
|
|
|
|
|
|
|
|
0
|
0
|
(3,562)
|
|
|
| Cash paid for treasury stock |
|
|
|
|
|
|
|
|
(51,474)
|
(24,350)
|
(529)
|
|
|
| Cash paid for contingent consideration |
|
|
|
|
|
|
|
|
(7,548)
|
(2,248)
|
0
|
|
|
| Cash paid for preferred stock dividends |
|
|
|
|
|
|
|
|
0
|
0
|
(40)
|
|
|
| Net cash flows provided from (used in) financing activities |
|
|
|
|
|
|
|
|
58,174
|
(27,274)
|
94,794
|
|
|
| NET CHANGE IN CASH AND CASH EQUIVALENTS |
|
|
|
|
|
|
|
|
69,712
|
(15,036)
|
(89,711)
|
|
|
| CASH AND CASH EQUIVALENTS, Beginning of period |
|
|
|
$ 47,081
|
|
|
|
$ 63,516
|
47,081
|
63,516
|
153,227
|
|
|
| Effect of exchange rate changes on cash |
|
|
|
|
|
|
|
|
(583)
|
(1,399)
|
0
|
|
|
| CASH AND CASH EQUIVALENTS, End of period |
116,210
|
|
|
|
47,081
|
|
|
|
116,210
|
47,081
|
63,516
|
116,210
|
116,210
|
| SUPPLEMENTAL DISCLOSURES OF CASH FLOWS INFORMATION: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Cash paid (received) for income taxes |
|
|
|
|
|
|
|
|
410
|
(189)
|
(1,847)
|
|
|
| Cash paid for interest |
|
|
|
|
|
|
|
|
9,920
|
6,947
|
4,065
|
|
|
| SUPPLEMENTAL DISCLOSURE OF NON-CASH INVESTING AND FINANCING ACTIVITIES: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Common stock repurchased included in accrued expenses and other liabilities |
|
|
|
|
|
|
|
|
0
|
464
|
526
|
|
|
| Amounts included in period-end accounts payable for: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Purchases of property, plant and equipment |
|
|
|
|
|
|
|
|
3,833
|
7,734
|
4,220
|
|
|
| Issuance costs |
|
|
|
|
|
|
|
|
250
|
84
|
311
|
|
|
| Incentive common stock liability for supply agreement |
|
|
|
|
|
|
|
|
0
|
316
|
412
|
|
|
| Issuance of common stock for acquisitions |
|
|
|
|
|
|
|
|
4,050
|
15,310
|
80,163
|
|
|
| Contingent consideration for acquisitions |
|
|
|
|
|
|
|
|
4,500
|
5,000
|
45,950
|
|
|
| Debt assumed in acquisition |
$ 0
|
|
|
|
$ 5,225
|
|
|
|
0
|
5,225
|
129,745
|
$ 0
|
$ 0
|
| Release of restricted cash to pay off the GOZone Bonds |
|
|
|
|
|
|
|
|
101,315
|
0
|
0
|
|
|
| Repayment of GOZone Bonds |
|
|
|
|
|
|
|
|
100,000
|
0
|
0
|
|
|
| Non-cash transfer of line of credit to long-term debt |
|
|
|
|
|
|
|
|
4,498
|
0
|
0
|
|
|
| Non-cash allocation of proceeds from the 2036 Convertible Notes issuance to convertible debt conversion liability |
|
|
|
|
|
|
|
|
40,145
|
0
|
0
|
|
|
| Non-cash allocation of purchase price between debt and equity related to the repurchase of the 2019 Convertible Notes |
|
|
|
|
|
|
|
|
7,387
|
0
|
0
|
|
|
| Non-cash share repurchases from partial capped call termination |
|
|
|
|
|
|
|
|
1,588
|
0
|
0
|
|
|
| Gain on redemption of preferred stock |
|
|
|
|
|
|
|
|
0
|
0
|
378
|
|
|
| Accruals of insurance proceeds related to impairment of property, plant and equipment |
|
|
|
|
|
|
|
|
$ 313
|
$ 1,414
|
$ 0
|
|
|