added hashFun to the mainVer ctor