added proxy and auth token also for legends