setup filter/permit services and permit filter function