added logging/printing refactor todo item.