use environment variable struct