added client constructor with environment variables