using 'getopt' for argument parsing