added X-Pagination and Sunspot support