adding environment variables to connection