added checks to getVersion()