added ability to configure connection based on a URL