refactored all modules to be instantiated using TxConfig instead of TxRuntimeContext