added support for stubbing transactions