refactor: add header and make it not try to add DHCP entry if mac address is not given