PROTECTION for the mortgage lender has been unchanged since the Bankruptcy Reform Act of 1978. At the time, first-time home buyers paid about 20 percent of the value of the houses upfront, got fixed-rate mortgages, and the lenders were local bankers — serious, skeptical types who scrutinized borrowers. Homeowners agreed to mortgages they could afford. When they ran into financial troubles, it was typically because of some unforeseen event in their lives like the loss of a job, an illness or a divorce. The mortgage was rarely the problem.

Yet the mortgage often is the financial culprit these days. That is particularly true of lending in the subprime market of zero-down loans with terms fixed for two years and then floating rates, arranged by aggressive national mortgage brokers and bankers who earn lucrative fees.

“The bankruptcy law was written for a different world, and we want to give the bankruptcy courts, and creditors, more flexible tools to work with borrowers to save their homes,” said Senator Richard J. Durbin of Illinois.

In September, Mr. Durbin, the Democratic whip, plans to propose amendments to the bankruptcy code, in a bill called the Helping Families Avoid Foreclosure Act. It would, among other things, permit writing down loans and stretching out payment terms.

Some bankruptcy experts agree that it is time to change the law. “Our bankruptcy laws are not well designed to deal with a massive wave of mortgage foreclosures,” said Elizabeth Warren, a professor at the Harvard Law School. In particular, Ms. Warren said, bankruptcy courts should be able to rewrite mortgages in line with market conditions.

The banking industry, which pushed hard for the tougher bankruptcy law in 2005, wants no easing up now.

For people struggling to hold onto their homes, the path to financial peril usually began with bad loans. Bad choices often made matters worse.