add page length to the API, CSV download