added reactive and non-reactive queries