I'm not sure how the new bankruptcy laws read, but previously, your Chapter 13 plan of repayment could specify direct payments to your mortgage...any arrears could be included in the plan for disbursement by the Ch 13 trustee. Your attorney should be able to answer this question for you. If the case is dismissed, all bets are off and you are no longer protected against collection or foreclosure by the second lien holder.

