added get version function