XML 24 R8.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Operating Activities      
Net loss attributable to the Company $ (596,155) $ (83,743) $ (85,608)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation of long-lived assets 14,434 11,938 11,832
Amortization of intangible assets 1,135 698 693
Stock-based compensation 17,135 10,890 8,771
(Gain) loss on extinguishment of debt (17,686) 518  
Provision for bad debts and other assets 700 1,981 1,626
Amortization of debt issuance costs and discount on convertible senior notes 17,061 9,006 6,347
Provision for common stock warrants 425,047 6,513 10,190
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) (4,286)
Deferred income tax benefit (30,845)   (9,295)
Loss (benefit) on service contracts 33,125 (1,643) 5,345
Changes in operating assets and liabilities that provide (use) cash:      
Accounts receivable (15,701) 10,594 (14,666)
Inventory (63,389) (24,633) 19,193
Prepaid expenses and other assets (18,401) (8,110) (4,654)
Accounts payable, accrued expenses, and other liabilities 51,880 17,234 (10,160)
Deferred revenue 20,914 (4,700) 6,322
Net cash used in operating activities (155,476) (53,324) (58,350)
Investing activities      
Purchases of property, plant and equipment (22,526) (5,683) (5,142)
Purchase of intangible assets (1,957) (2,404) (929)
Purchases of equipment related to PPA and equipment related to fuel delivered to customers (25,738) (6,532) (13,501)
Net cash paid for acquisitions (45,113)    
Proceeds from sale of leased assets   375  
Net cash used in investing activities (95,334) (14,244) (19,572)
Financing activities      
Proceeds from issuance of preferred stock and warrants, net of transaction costs   14,089 30,934
Proceeds from public offerings, net of transaction costs 1,271,714 158,343 7,195
Proceeds from exercise of stock options 32,023 1,217 138
Payments for redemption of preferred stock   (4,040)  
Proceeds from issuance of convertible senior notes, net 205,098 39,052 95,856
Repurchase of convertible senior notes (90,238)    
Purchase of capped calls and common stock forward (16,253)   (43,500)
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) (16,190)
Proceeds from finance obligations 65,259 83,668 76,175
Proceeds from long-term debt, net 99,000 119,186  
Repayments of finance obligations (27,212) (59,196) (30,531)
Net cash provided by financing activities 1,515,529 326,974 120,077
Effect of exchange rate changes on cash 65 (59) (57)
Increase in cash, cash equivalents and restricted cash 1,264,784 259,347 42,098
Cash, cash equivalents, and restricted cash beginning of period 369,500 110,153 68,055
Cash, cash equivalents, and restricted cash end of period 1,634,284 369,500 110,153
Supplemental disclosure of cash flow information      
Cash paid for interest 28,942 19,180 13,057
Summary of non-cash activity      
Recognition of right of use assets 55,651 52,924 41,679
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    
Net transfers between inventory and long-lived assets     $ 18,175
Conversion of preferred stock to common stock $ 1,179 $ 28,392