better encapsulation for template environment
no longer required