XML 40 R8.htm IDEA: XBRL DOCUMENT v3.21.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Operating Activities    
Net loss attributable to the Company $ (596,155) $ (83,743)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation of long-lived assets 14,434 11,938
Amortization of intangible assets 1,135 698
Stock-based compensation 17,135 10,890
(Gain) loss on extinguishment of debt (17,686) 518
Provision for bad debts and other assets 700 1,981
Amortization of debt issuance costs and discount on convertible senior notes 17,061 9,006
Provision for common stock warrants 425,047 6,513
Loss on disposal of leased assets   212
Fair value adjustment to contingent consideration (1,160)  
Impairment of long-lived assets 6,430  
Change in fair value of common stock warrant liability   (79)
Deferred income tax benefit (30,845)  
Loss (benefit) on service contracts 33,125 (1,643)
Changes in operating assets and liabilities that provide (use) cash:    
Accounts receivable (15,701) 10,594
Inventory (63,389) (24,633)
Prepaid expenses and other assets (18,401) (8,110)
Accounts payable, accrued expenses, and other liabilities 51,880 17,234
Deferred revenue 20,914 (4,700)
Net cash used in operating activities (155,476) (53,324)
Investing Activities    
Purchases of property, plant and equipment (22,526) (5,683)
Purchase of intangible assets (1,957) (2,404)
Purchases of equipment related to PPA and equipment related to fuel delivered to customers (25,738) (6,532)
Net cash paid for acquisitions (45,113)  
Proceeds from sale of leased assets   375
Net cash used in investing activities (95,334) (14,244)
Financing Activities    
Proceeds from issuance of preferred stock and warrants, net of transaction costs   14,089
Proceeds from public offerings, net of transaction costs 1,271,714 158,343
Proceeds from exercise of stock options 32,023 1,217
Payments for redemption of preferred stock   (4,040)
Proceeds from issuance of convertible senior notes, net 205,098 39,052
Repurchase of convertible senior notes (90,238)  
Purchase of capped calls and common stock forward (16,253)  
Proceeds from borrowing of long-term debt, net of transaction costs   119,186
Proceeds from termination of capped calls 24,158  
Principal payments on long-term debt (48,020) (25,345)
Proceeds from finance obligations 65,259 83,668
Proceeds from long-term debt, net 99,000 119,186
Repayments of finance obligations (27,212) (59,196)
Net cash provided by financing activities 1,515,529 326,974
Effect of exchange rate changes on cash 65 (59)
Increase in cash, cash equivalents and restricted cash 1,264,784 259,347
Cash, cash equivalents, and restricted cash beginning of period 369,500 110,153
Cash, cash equivalents, and restricted cash end of period 1,634,284 369,500
Supplemental disclosure of cash flow information    
Cash paid for interest 28,942 19,180
Summary of non-cash investing and financing activity    
Recognition of right of use assets 55,651 52,924
Net tangible assets acquired in a business combination 8,751  
Intangible assets acquired in a business combination 32,268  
Conversion of convertible notes to common stock 62,553  
Conversion of preferred stock to common stock $ 1,179 $ 28,392