add mac initialization