basic transaction matching
minor improvements