adding flag and supporting code to be able to override the host to make requests to