now using the lovely optparse for parsing options