In Annapolis yesterday , state lawmakers and officials vowed to introduce legislation that would address such foreclosure rescue operations and , more broadly , help residents at risk of losing their homes .