simpler api and pagination