Lenders now working to help homeowners avoid foreclosure