handled case of two transaction returned in a single request because one references the other