chaining URLs used in my client in a loop