use Getopt::Long
allow specifying input directory