add loglevel

loglevel and nuance of error added