set cleaned up URI, FIXME: proxy setting