support rule filter/subcontext