properly use environment variables