XML 19 R6.htm IDEA: XBRL DOCUMENT v3.21.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Cash flows from operating activities:    
Net Loss $ (171,185) $ (262,897)
Adjustments to reconcile net loss to cash provided by operating activities:    
Depreciation, depletion, and amortization 46,428 43,411
Impairment expense 0 67,922
Debt extinguishment and commitment costs 8,135 0
Non-cash interest expense 3,638 3,261
Non-cash lower of cost and net realizable value adjustment (10,595) 24,015
Change in value of common stock warrants 0 (4,270)
Deferred taxes 0 (21,088)
Loss (gain) on sale of assets, net (64,402) 0
Stock-based compensation 4,072 3,537
Unrealized (gain) loss on derivative contracts (5,517) 2,048
Equity (earnings) losses from Laramie Energy, LLC 0 46,905
Net changes in operating assets and liabilities:    
Trade accounts receivable (99,462) 114,219
Prepaid and other assets 5,482 28,241
Inventories (184,107) 164,178
Deferred turnaround expenditures (5,731) (6,399)
Obligations under inventory financing agreements 199,644 (150,358)
Accounts payable, other accrued liabilities, and operating lease ROU assets and liabilities 275,415 (18,958)
Net cash provided by operating activities 1,815 33,767
Cash flows from investing activities:    
Capital expenditures (14,007) (30,165)
Proceeds from sale of assets 102,854 5
Net cash provided by (used in) investing activities 88,847 (30,160)
Cash flows from financing activities:    
Proceeds from sale of common stock, net of offering costs 87,193 0
Proceeds from borrowings 56,409 180,950
Repayments of borrowings (197,669) (88,208)
Net borrowings (repayments) on deferred payment arrangements and receivable advances 76,032 (72,506)
Payment of deferred loan costs (331) (6,055)
Purchase of common stock for retirement (1,323) (1,068)
Payments for debt extinguishment and commitment costs (5,618) 0
Other financing activities, net 665 134
Net cash provided by financing activities 15,358 13,247
Net increase in cash, cash equivalents, and restricted cash 106,020 16,854
Cash, cash equivalents, and restricted cash at beginning of period 70,309 128,428
Cash, cash equivalents, and restricted cash at end of period 176,329 145,282
Net cash received (paid) for:    
Interest (37,601) (28,950)
Taxes 54 240
Non-cash investing and financing activities:    
Accrued capital expenditures 2,129 5,060
Value of warrants reclassified to equity 0 3,936
ROU assets obtained in exchange for new finance lease liabilities 1,102 1,915
ROU assets obtained in exchange for new operating lease liabilities 87,331 4,557
ROU assets terminated in exchange for release from operating lease liabilities $ 113 $ 7,738