add api for mac addr