added read_mac