add queryResource and queryContainer