add multiple source support for filter template