added recursive querying for multi page response