NEW YORK ( TheStreet) -- American International Group ( AIG) has made huge strides toward repaying its government debt, but that doesn't mean shareholders should prepare for a near-term independence rally. In the past couple of weeks, AIG has locked down deals to sell two major insurance units for a total of $51 billion, which will go toward repaying roughly the same amount of debt to the Federal Reserve Bank of New York. The insurer will sell its Asian life insurance unit, AIA, to Prudential Plc ( PUK) for $35.5 billion, and its foreign life insurance unit, Alico to MetLife ( MET) for another $15.5 billion. Because the deals are comprised of both cash and stock, it will take a while for the Fed to fully recoup its investment. It will have to sell its stakes in AIA and Alico to the market over time to avoid pushing down prices, but at least it has a definitive plan in place. The Treasury Department's investment is a little less certain. The Treasury invested $47 billion into AIG, most through the issuance of preferred stock. There's also a credit line that the firm has drawn on periodically to fill balance-sheet gaps. All of that would need to be paid down, with deferred interest and dividends, either through cash flows of AIG's core casualty and property division, by raising capital through new stock offerings, or by converting the Treasury's preferred stake into common and selling that to the market. Looking at the math, it appears the Treasury's exit will either take a really long time, or need to come at a loss. As far as cash flows go, AIG booked an $8.9 billion loss last year. While much of the loss came from special items, operating results declined in all but one division, as premiums dropped across the board: Down 14% at the core property and casualty division, Chartis; down 30% at the U.S. life and annuity division, SunAmerica; down 8% in the foreign life and annuity division. Of course this doesn't mean AIG will never generate money -- pre-tax operating income was over $8 billion -- but the firm is still clearly making progress toward digging itself out of a hole.