add remote query to resource system