debuggin transaction handling