XML 26 R7.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities:      
Net income (loss) $ (81,297) $ (409,086) $ 40,809
Adjustments to reconcile net income (loss) to cash provided by (used in) operating activities:      
Depreciation, depletion, and amortization 94,241 90,036 86,121
Impairment expense 1,838 85,806 0
Debt extinguishment and commitment costs 8,144 0 11,587
Non-cash interest expense 5,663 6,902 9,118
Non-cash lower of cost and net realizable value adjustment (10,132) 10,595 (3,752)
Change in value of common stock warrants 0 (4,270) 3,199
Deferred taxes (260) (20,895) (66,886)
Gain on sale of assets, net (64,697) 0 0
Stock-based compensation 8,165 7,342 6,437
Unrealized (gain) loss on derivative contracts (1,393) (3,322) 9,350
Equity losses from Laramie Energy, LLC 0 46,905 89,751
Net changes in operating assets and liabilities:      
Trade accounts receivable (83,955) 117,801 (36,652)
Collateral posted with broker for derivative transactions 4,564 7,035 (8,797)
Prepaid and other assets (10,885) 29,465 (24,121)
Inventories (350,652) 171,880 (191,688)
Deferred turnaround expenditures (9,451) (49,770) (9,800)
Obligations under inventory financing agreements 252,920 (190,831) 121,985
Accounts payable, other accrued liabilities, and operating lease ROU assets and liabilities 209,565 67,193 68,969
Net cash provided by (used in) operating activities (27,622) (37,214) 105,630
Cash flows from investing activities:      
Acquisitions of businesses, net of cash acquired 0 0 (273,399)
Proceeds related to asset acquisition 0 0 3,226
Capital expenditures (29,533) (63,522) (83,920)
Proceeds from sale of assets 104,161 58 864
Net cash provided by (used in) investing activities 74,628 (63,464) (353,229)
Cash flows from financing activities:      
Proceeds from sale of common stock, net of offering costs 87,193 0 0
Proceeds from borrowings 186,773 250,387 510,906
Repayments of borrowings (329,315) (159,489) (241,336)
Net borrowings (repayments) on deferred payment arrangements and receivable advances 61,098 (41,645) 43,422
Payment of deferred loan costs (346) (6,266) (13,450)
Exercise of stock options 0 0 8,171
Payments for debt extinguishment and commitment costs (5,618) 0 (8,087)
Other financing activities, net (879) (428) 582
Net cash provided by (used in) financing activities (1,094) 42,559 300,208
Net increase (decrease) in cash, cash equivalents, and restricted cash 45,912 (58,119) 52,609
Cash, cash equivalents, and restricted cash at beginning of period 70,309 128,428 75,819
Cash, cash equivalents, and restricted cash at end of period 116,221 70,309 128,428
Net cash received (paid) for:      
Interest (65,221) (54,256) (58,250)
Taxes (795) 190 (136)
Non-cash investing and financing activities:      
Accrued capital expenditures 8,177 4,686 6,386
Value of warrants reclassified to equity 0 3,936 0
ROU assets obtained in exchange for new finance lease liabilities 1,936 3,476 963
ROU assets obtained in exchange for new operating lease liabilities 97,011 22,529 79,382
ROU assets terminated in exchange for release from finance lease liabilities 0 0 0
ROU assets terminated in exchange for release from operating lease liabilities 6,847 7,738 193
Common stock issued for business combination 0 0 36,980
Common stock issued to repurchase convertible notes $ 0 $ 0 $ 74,290