added env for accessing the map originally passed into the template