improvements in pagination and bugfix in relevance