minor changes in logging