added some loglevel logging