serialize transaction, close #23