simplified usage of transactions