added resource filter factory
some improvements