remove redundand class
explicitely pass template environment