slight changes in logging