updated versions methods to raise an exception when unable to determine version