add addMac and addip