fixing arguments that are passed into args... also fixing the parsing of the log level