add get os version function