try using getopt