refined transaction handling