fixed batching, first attempt. Will work for new transactions, recurring to be done