swapped \n\r to \r\n for windows readMAC