add loglevel feature