use getopt for command line parsing