sirvFuncs[hostName] is not a function