some enhancements like mac address automatic generation, make use of getopt, etc