some major fixes for the debtor class