$537,616, partially offset by changes in accounts payable of $2,677,329, prepaid expenses and other current assets of $3,118,119 and accrued expenses and other labilities of $1,525,563.
For the year ended December 31, 2020, net cash used in continuing operating activities of $3,730,505 consisted of net loss from continuing operations of $14,105,158, plus $7,130,573 of non-cash items, consisting primarily of depreciation and amortization of $4,901,689, impairments of $1,084,671, amortization of deferred financing costs of $609,396 and bad debt expense of $474,708, less $3,244,080 used in changes in operating assets and other operating activities, consisting primarily of cash used in accounts receivable of $2,782,038.
Investing activities
Net cash used in investing activities was $132,026 for the year ended December 31, 2021, compared to $6,837,536 for the year ended December 31, 2020, with $0 and $42,368, respectively, related to discontinued operations.
For the year ended December 31, 2021, net cash used in investing activities consisted of $97,026 of fixed asset additions, and $35,000 paid to the buyer of MG Cleaners. For the year ended December 31, 2020, net cash used in investing activities consisted of $6,320,168 cash paid for the acquisition of 5J, $75,000 paid to the buyer of MG Cleaners, and $400,000 of net capital expenditures.
Financing activities
Net cash provided by financing activities was $8,445,260 for the year ended December 31, 2021, compared to $11,759,723 for the year ended December 31, 2020, including $226,932 of cash used in and $484,235 of cash provided, respectively, related to discontinued operations.
For the year ended December 31, 2021, net cash provided by financing activities consisted of net proceeds from secured line of credit of $5,326,060, net proceeds from notes payable of $15,064,003 and proceeds from convertible notes payable of $3,906,079, partially offset by payments on notes payable of $15,553,327, payment on convertible notes payable of $50,000 and payment of deferred finance costs of $20,623.
For the year ended December 31, 2020, net cash provided by financing activities consisted of net proceeds from secured line of credit of $4,156,238, net proceeds from notes payable of $5,584,048 and proceeds from convertible notes payable of $3,144,295, partially offset by payments on notes payable of $1,385,535 and payment of deferred finance costs of $223,558.
Our cash flows from operations are primarily funded through our financing activities, including our accounts receivable line of credit facility, notes and loans, stock sales, issuing our stock for services and various leases. Currently, we believe we will need to continue to utilize lines of credit, borrowings and stock sales to sufficiently sustain our current level of operations for the next 12 months. At present, we believe the industry and general domestic economic activity is still partially depressed given the current perceived in progress economic recovery of the COVID-19 pandemic and recent rebound and growth in current commodity prices. We likely will require additional capital to maintain or expand operations. Additionally, we believe any material acquisition of another operating company would require additional outside capital consisting of debt or equity. Failure to secure additional funds could significantly hamper our ongoing operations particularly if a down cycle in our industry continues further. As the business cycle improves, and the pandemic dissipates in the markets we serve, we plan to improve our cash flows provided in operating activities by focusing on increasing sales by increasing utilization of the assets we have acquired and offering higher value services that receive higher gross margins. However, there can be no assurances given of industry improvement, pandemic relief or improved cash flows of our business.
Historically, we have funded our capital expenditures internally through cash flow, leasing and financing arrangements. We intend to continue to fund future capital expenditures through cash flow, as well as through capital available to us pursuant to our line of credit, capital from the sale of our debt and equity securities and through commercial leasing and financing programs.