fixed bug (hadn't gotten syntax right for getopt)