added private flag to query results