add loglevel debugging, print more pretty output