ENT-292: improve transaction api