changed rest requests to provide maxResults param