add optional parameter to findTemplate to give all matches, without slow consolidation code