debug statements for pagination api