add index/content pattern filter, not finished