fixed logging

fixes #77 #67