noted that need getopt to parse options