added proxy support via environment variables