addressing review comments: log to separate file as json