fix bug in *transaction-level* logic; add *current-logical-transaction*