added loglevel option