prepare new function get_pages_by_prefix for larger number of pages