added environment variables to templates