make QueryFlag more permissive