working on serialization of transactions