multiple templates support