take the scheme/host in the input rather than hard coded