add resourcequery