fixed case issue with getopt