need to assert if both host/port and location are provided