paginating and event emitting