adds pagination, authentication