made host, port and path configurable