template legacy support for 2.1

close #91