fixing issue #6 - wrong call to logger