added pagination sugar to cursor wrapper