updated how the config.json is read
including upstreamPort port in request