got the tx functions working