change to getopt
change to getopt #2