changed unsigned char to uint8_t when finding machine hw addr