fixed lookup of main version