add support for rootelement other than txn