added debuging config
improve debug config
fix bug in txn regions