new permissions system and number of best queries with prefetch data