add option for setting the mac address (#1014)