forgot to add n to getopt flags