better handling of tx. only save relevant ones.