this will NEVER be already defined each time it is called it will be a fresh object, this line should be `api.getHost = opt.getHost ? opt.getHost: getHost;`, the wrapper can then make sure to always add that option in.