changed a few names, added postTransaction (incomplete)