added multi-in tx
fixed tx bug