- trying to better handle multiple levels of nested transactions
- removing the resetTransaction function