change from startMac to macPrefix
add OptionParser function