better pages querying