don't rely on global_transaction_id, since that's not thread safe how I did it...