implemented tx.lookup()