use new environment variable struct