instead of a separate type, declare a method to check if a transaction is running. fixes #18