added patch to make sure using loglevel option was case insensitive.