fixed issues with getting the MAC address