move non-txn serialization stuff to separate module. v1.8.0