add CodeBlock, update TransactionWrapper