added resource filtering