XML 29 R8.htm IDEA: XBRL DOCUMENT v3.24.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities        
Net income (loss) $ (71,973,000) $ 1,997,000 $ (7,661,000)  
Net income from discontinued operations, net of tax 54,197,000 18,667,000 17,178,000  
Net loss from continuing operations (126,170,000) (16,670,000) (24,839,000)  
Adjustments to reconcile net income (loss) from continuing operations to cash used in operating activities:        
Stock-based compensation expense 2,285,000 1,574,000 862,000  
Depreciation and amortization 31,164,000 17,102,000 5,724,000  
(Reduction in) provision for bad debt (224,000) 242,000 826,000  
Loss (gain) on commodity derivative contracts (2,858,000) 87,978,000 2,258,000  
Provision for environment clean up 0 1,428,000 0  
Gain on forgiveness of debt 0 0 (4,222,000)  
Net cash settlement on commodity derivatives 6,575,000 (92,556,000) (2,436,000)  
Loss on sale of assets 0 220,000 64,000  
Loss on assets impairment 0 0 2,124,000 $ 0
Amortization of debt discount and deferred costs 78,779,000 49,251,000 1,231,000  
Deferred income tax benefit (13,385,000) (7,171,000) 0  
Loss (gain) on change in value of derivative warrant liability (7,992,000) (7,821,000) 15,685,000  
Changes in operating assets and liabilities, net of acquisitions:        
Accounts receivable (3,075,000) (27,183,000) (821,000)  
Inventory (45,231,000) 2,586,000 (3,997,000)  
Prepaid expenses (21,027,000) (26,724,000) (1,615,000)  
Accounts payable 53,593,000 10,850,000 1,054,000  
Accrued expenses (9,855,000) 77,647,000 2,551,000  
Other assets (1,061,000) 56,000 (48,000)  
Net cash (used in) provided by operating activities from continuing operations (58,482,000) 70,809,000 (5,599,000)  
Cash flows from investing activities        
Deposit for refinery purchase and related costs 0 0 (13,663,000)  
Internally developed or purchased software (3,223,000) (149,000) 0  
Proceeds from sale of discontinued operation 92,034,000 0 0  
Redemption of noncontrolling entity 0 556,000 0  
Proceeds from the sale of assets 7,000 395,000 75,000  
Acquisition of business, net of cash (7,775,000) (227,525,000) 2,000  
Purchase of fixed assets (140,313,000) (75,512,000) (2,331,000)  
Net cash used in investing activities from continuing operations (59,270,000) (302,235,000) (15,917,000)  
Cash flows from financing activities        
Line of credit payments, net 0 0 (133,000)  
Proceeds received from exercise of options and warrants 683,000 730,000 6,921,000  
Net borrowings on inventory financing agreements 22,154,000 117,189,000 0  
Contribution received from noncontrolling interest 2,842,000 0 2,000  
Distribution to non-controlling interest 0 (380,000) (169,000)  
Redemption of redeemable noncontrolling interest 0 (50,666,000) 0  
Payments on finance leases (2,045,000) (819,000) (844,000)  
Proceeds from issuance of notes payable 68,236,000 173,256,000 143,831,000  
Payments made on notes payable (39,582,000) (18,948,000) (15,836,000)  
Net cash provided by financing activities from continuing operations 52,288,000 220,362,000 133,772,000  
Discontinued operations:        
Net cash (used in) provided by operating activities (150,000) 25,287,000 15,349,000  
Net cash used in investing activities 0 (4,663,000) (1,973,000)  
Net cash provided by (used in) discontinued operations (150,000) 20,624,000 13,376,000  
Net change in cash and cash equivalents and restricted cash (65,614,000) 9,560,000 125,632,000  
Cash and cash equivalents and restricted cash at beginning of the year 146,187,000 136,627,000 10,995,000  
Cash and cash equivalents and restricted cash at end of year 80,573,000 146,187,000 136,627,000 10,995,000
Cash and cash equivalents 76,967,000 141,258,000 36,130,000  
Restricted cash 3,606,000 4,929,000 100,497,000  
Cash and cash equivalents and restricted cash as shown in the consolidated statements of cash flows 80,573,000 146,187,000 136,627,000 $ 10,995,000
SUPPLEMENTAL INFORMATION        
Cash paid for interest 47,430,000 33,901,000 2,273,000  
Cash paid for income taxes 0 0 0  
NON-CASH INVESTING AND FINANCING TRANSACTIONS        
Dividends on Series B and B-1 Preferred Stock 0 0 (258,000)  
Accretion of discount on Series B and B-1 Preferred Stock 0 0 507,000  
Accretion of redeemable noncontrolling interest to redemption value 0 428,000 1,992,000  
Equipment acquired under finance leases 24,159,000 46,351,000 552,000  
Equipment acquired under operating leases 55,114,000 20,452,000 89,000  
Reclass derivative liabilities 0 78,789,000 0  
Conversion of Convertible Senior note, including inducement common stock 101,130,000 59,822,000 0  
Series B and B-1 Preferred Stock        
NON-CASH INVESTING AND FINANCING TRANSACTIONS        
Conversion of Series B and B1 Preferred Stock into common stock $ 0 $ 0 $ 24,610,000