WIP; need to add indexstrategy and query filter by trusted IPs