use getopt for command line options can specify stores file now