use single template file for plugins, added filter, test for filter ... too much duplicated code