added some resource queries