added stackMode to Transaction