make it possible to add class or instance to addFilter