patched basic filter template gen