replaced winreg module by getmac